package com.chinacoal.hr.levelapi.client.fallback;

import com.chinacoal.hr.levelapi.client.AttendanceAppealClient;
import com.chinacoal.hr.levelapi.client.response.Result;
import com.chinacoal.hr.levelapi.client.response.ResultCode;
import com.chinacoal.hr.levelapi.client.response.ResultGenerator;
import com.chinacoal.hr.levelapi.entity.AttendanceAppeal;

/**
 * Created by jinyabin on 2020/10/29.
 */
public class AttendanceAppealClientFallback implements AttendanceAppealClient {
    @Override
    public Result list(Long page, Long limit, String orgCode, String yrmonth, String empCode, String explainCode) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    @Override
    public Result list(String explainId) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    @Override
    public Result add(AttendanceAppeal record) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    @Override
    public Result update(String explainId, AttendanceAppeal attendanceAppeal) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    @Override
    public Result delete(String explainId) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    @Override
    public Result submit(String explainId, AttendanceAppeal record) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    @Override
    public Result drawback(String explainId, AttendanceAppeal record) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }
}
